/**
 * Copyright(c) 2020 NESENSOR.
 * <p>
 * History:
 * 2019/9/12 0012 15:04 Created by Author_zero
 */
package com.funtl.spring.cloud.alibaba.consumer.configuration;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * TODO: Must write comments.
 *
 * @author <a href="mailto:Author_zero@nesensor.com">Author_zero</a> 
 * @version 1.0 2019/9/12 0012 15:04
 */
@Configuration
public class ConsumerConfiguration {


    /**
     * <Bean id="restTemplate" class="org.springframework.web.client.RestTemplate"/>
     * @return
     */
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
